Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor delete loops to queries #63

Conversation

martijngastkemper
Copy link
Contributor

To delete an object it's not necessary to load it into memory. And by doing one query instead of a delete query for every object, it's much faster.

To delete an object it's not necessary to load it into memory. And by
doing one query instead of a delete query for every object, it's much
faster.
@martijngastkemper martijngastkemper marked this pull request as ready for review July 29, 2024 09:50
@martijngastkemper
Copy link
Contributor Author

@danielme85 I would expect the unittest.yml workflow to run and test my code. How can I run that workflow to verify that my change is valid?

@danielme85 danielme85 merged commit 650b148 into danielme85:main Jul 31, 2024
4 checks passed
@danielme85
Copy link
Owner

Hi @martijngastkemper , looks like I had to click "approve" for the testing to run.
Let me see if I can fix that for future PR's.

And you are absolutely right about loading models before deleting them, I'm all for efficiency.
Thank you for your contribution!
-dan

@martijngastkemper
Copy link
Contributor Author

Thanks for the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants